home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / rectobjp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  5KB  |  107 lines

  1. /* $XConsortium: RectObjP.h,v 1.11 90/03/19 12:52:48 swick Exp $ */
  2. /* $oHeader: RectObjP.h,v 1.2 88/08/18 15:55:52 asente Exp $ */
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _Xt_RectObjP_h_
  28. #define _Xt_RectObjP_h_
  29.  
  30. #include <X11/RectObj.h>
  31. #include <X11/ObjectP.h>
  32.  
  33. /**********************************************************
  34.  * Rectangle Object Instance Data Structures
  35.  *
  36.  **********************************************************/
  37. /* these fields match CorePart and can not be changed */
  38.  
  39. typedef struct _RectObjPart {
  40.     Position        x, y;               /* rectangle position               */
  41.     Dimension       width, height;      /* rectangle dimensions             */
  42.     Dimension       border_width;       /* rectangle border width           */
  43.     Boolean         managed;            /* is widget geometry managed?       */
  44.     Boolean         sensitive;          /* is widget sensitive to user events*/
  45.     Boolean         ancestor_sensitive; /* are all ancestors sensitive?      */
  46. }RectObjPart;
  47.  
  48. typedef struct _RectObjRec {
  49.     ObjectPart object;
  50.     RectObjPart rectangle;
  51. } RectObjRec;
  52.  
  53.  
  54.  
  55. /********************************************************
  56.  * Rectangle Object Class Data Structures
  57.  *
  58.  ********************************************************/
  59. /* these fields match CoreClassPart and can not be changed */
  60. /* ideally these structures would only contain the fields required;
  61.    but because the CoreClassPart cannot be changed at this late date
  62.    extraneous fields are necessary to make the field offsets match */
  63.  
  64. typedef struct _RectObjClassPart {
  65.  
  66.     WidgetClass     superclass;         /* pointer to superclass ClassRec   */
  67.     String          class_name;         /* widget resource class name       */
  68.     Cardinal        widget_size;        /* size in bytes of widget record   */
  69.     XtProc          class_initialize;   /* class initialization proc        */
  70.     XtWidgetClassProc class_part_initialize; /* dynamic initialization      */
  71.     XtEnum          class_inited;       /* has class been initialized?      */
  72.     XtInitProc      initialize;         /* initialize subclass fields       */
  73.     XtArgsProc      initialize_hook;    /* notify that initialize called    */
  74.     XtProc          rect1;        /* NULL                             */
  75.     XtPointer       rect2;              /* NULL                             */
  76.     Cardinal        rect3;              /* NULL                             */
  77.     XtResourceList  resources;          /* resources for subclass fields    */
  78.     Cardinal        num_resources;      /* number of entries in resources   */
  79.     XrmClass        xrm_class;          /* resource class quarkified        */
  80.     Boolean         rect4;              /* NULL                             */
  81.     Boolean         rect5;              /* NULL                             */
  82.     Boolean         rect6;              /* NULL                    */
  83.     Boolean         rect7;              /* NULL                             */
  84.     XtWidgetProc    destroy;            /* free data for subclass pointers  */
  85.     XtWidgetProc    resize;             /* geom manager changed widget size */
  86.     XtExposeProc    expose;             /* rediplay rectangle               */
  87.     XtSetValuesFunc set_values;         /* set subclass resource values     */
  88.     XtArgsFunc      set_values_hook;    /* notify that set_values called    */
  89.     XtAlmostProc    set_values_almost;  /* set values almost for geometry   */
  90.     XtArgsProc      get_values_hook;    /* notify that get_values called    */
  91.     XtProc          rect9;              /* NULL                             */
  92.     XtVersionType   version;            /* version of intrinsics used       */
  93.     XtPointer       callback_private;   /* list of callback offsets         */
  94.     String          rect10;             /* NULL                             */
  95.     XtGeometryHandler query_geometry;   /* return preferred geometry        */
  96.     XtProc          rect11;             /* NULL                             */
  97.     XtPointer       extension;          /* pointer to extension record      */
  98. } RectObjClassPart;
  99.  
  100. typedef struct _RectObjClassRec {
  101.     RectObjClassPart rect_class;
  102. } RectObjClassRec;
  103.  
  104. externalref RectObjClassRec rectObjClassRec;
  105.  
  106. #endif /*_Xt_RectObjP_h_*/
  107.